#include <stdio.h>

int main()
{
    char c[] = "bao qian yue";
    if (c[0] > 'Z')
        c[0] = c[0] - 'a' + 'A';
    for (int i = 0; i < sizeof(c) / sizeof(char); i++)
    {
        if (c[i] == ' ')
        {
            if (c[i + 1] > 'Z')
                c[i + 1] = c[i + 1] - 'a' + 'A';
        }
    }
    printf("%s", c);
    return 0;
}